package caiwei.android_study_sample.activity;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class Android07UIBaseSampleTab extends TabActivity
{

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		TabHost _TabHost1 = getTabHost();
		TabSpec _TabSpec1 = _TabHost1
				.newTabSpec("Tab1")
				.setIndicator("Tab11",getResources().getDrawable(android.R.drawable.ic_dialog_email))
				.setContent(
						new Intent(this,
								Android07UIBaseSampleSlidingDrawer.class));
		_TabHost1.addTab(_TabSpec1);
		
		TabSpec _TabSpec2 = _TabHost1
				.newTabSpec("Tab2")
				.setIndicator("Tab22")
				.setContent(
						new Intent(this,
								Android07UIBaseSampleGridView.class));
		_TabHost1.addTab(_TabSpec2);

	}

}
